package com.egao.orderB.service;

import com.egao.common.core.damon.results.PageResult2;
import com.egao.common.core.web.JsonResult;
import com.egao.common.system.entity.User;
import com.egao.orderB.entity.OceanTemplate;
import net.sf.json.JSONObject;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

/**
 * 海运费用模板服务类
 * @author : Doman
 * @date : 2021-10-19 14:30:21
 * @version ：1.0
 */
public interface OceanTemplateService /*extends IService<OceanTemplate>*/ {

  /**
	 * 分页查询
	 * @param page
	 * @param oceanTemplate
	 * @return
	 */
	public JsonResult list(PageResult2<T> page, OceanTemplate oceanTemplate, User loginUser) throws Exception;

	/**
	 * 获取list
	 * @param oceanTemplate
	 * @return
	 */
	public JsonResult list(OceanTemplate oceanTemplate, User loginUser);

	/**
	 * 根据Id查询
	 * @param oceanTemplate
	 * @return
	 */
	public JsonResult getById(OceanTemplate oceanTemplate);

	/**
	 * 保存
	 * @param oceanTemplate
	 * @param loginUser
	 * @return
	 */
	public JsonResult save(OceanTemplate oceanTemplate, User loginUser);

	/**
	 * 修改
	 * @param oceanTemplate
	 * @param loginUser
	 * @return
	 */
	public JsonResult update(OceanTemplate oceanTemplate, User loginUser);

	/**
	 * 删除
	 * @param oceanTemplate
	 * @param loginUser
	 * @return
	 */
	public JsonResult remove(OceanTemplate oceanTemplate, User loginUser);
}
